package com.sushi.service;

import com.sushi.repository.entity.UserEntity;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sushi.response.ResponseBO;
import com.sushi.response.ResponsePageBO;
import com.sushi.response.UserResp;
import com.sushi.request.UserReq;
import com.sushi.request.UserPageReq;

/**
 * 用户 服务类
 * @date 2023-05-02
 * @time 17:16:19
 * @author Administrator
 */
public interface UserService extends IService<UserEntity> {

    

    /**
     * 新增
     */
    public ResponseBO<UserResp> add(UserReq req);

    /**
     * 逻辑删除
     */
    public ResponseBO<UserResp> logicRemove(UserReq req);

    /**
     * 更新
     */
    public ResponseBO<UserResp> updateByField(UserReq req);

    /**
     * 列表
     */
    public ResponsePageBO<UserResp> listByCondition(UserPageReq req);

    /**
     * 详情
     */
    public ResponseBO<UserResp> detail(UserReq req);

    ResponseBO<String> signUp(UserReq req);

    ResponseBO<UserResp> login(UserReq req);

    ResponseBO<String> checkAccount(UserReq req);

    ;

}